ShortPixel\Model\Image\ImageModel D

Total Complexity 300
Dependencies 5
Dependents 12
Total lines 1,488
Lines of code 1,022
Logical lines of code 580
Comment lines 153
Methods 53
Properties 12

Methods 53

Method Rating Maintainability Complexity Lines of code
createParamList()
D
32 33 104
handleOptimized()
C
30 21 126
getProcessableReason()
B
40 18 58
isProcessable()
A
49 17 30
getImageType()
A
45 15 43
createBackup()
A
41 13 62
handleOptimizedFileType()
A
45 14 43
isRestorable()
A
43 11 52
restore()
A
40 7 67
isProcessableSize()
A
54 10 19
isPathExcluded()
A
52 9 23
setImageSize()
A
55 9 22
isProcessableFileType()
A
55 9 18
isImage()
A
50 8 31
isExtensionExcluded()
A
51 8 28
isSizeExcluded()
A
53 8 21
onDelete()
A
57 8 17
handleWebp()
S
49 6 32
handleAvif()
S
53 5 21
getCountOptimizeData()
S
54 5 20
getImprovement()
S
58 5 15
get()
S
63 5 11
matchExludeRegexPattern()
S
63 4 11
verifyImage()
S
63 4 10
isUserExcluded()
S
60 3 15
setMeta()
S
60 3 15
getMeta()
S
62 3 12
isProcessableAnyFileType()
S
65 3 9
getReason()
S
67 3 8
setWebp()
S
68 3 7
setAvif()
S
68 3 7
matchExcludePattern()
S
66 3 9
cancelUserExclusions()
S
72 2 6
exists()
S
67 2 8
isOptimized()
S
68 2 8
getOptimizeUrls()
S
100 1 0
saveMeta()
S
100 1 0
loadMeta()
S
100 1 0
getImprovements()
S
100 1 0
getExcludePatterns()
S
100 1 0
preventNextTry()
S
100 1 0
isOptimizePrevented()
S
100 1 0
resetPrevent()
S
100 1 0
__construct()
S
80 1 3
__get()
S
80 1 3
getWebp()
S
80 1 3
getAvif()
S
80 1 3
recordChanged()
S
81 1 3
didRecordChange()
S
82 1 3
hasMeta()
S
79 1 3
setVirtualToReal()
S
69 1 7
toClass()
S
81 1 3
fs()
S
80 1 3